package cn.wolfcode.rbac.service;

import cn.wolfcode.rbac.domain.Employee;
import cn.wolfcode.rbac.domain.Role;
import cn.wolfcode.rbac.qo.EmployeeQueryObject;
import cn.wolfcode.rbac.qo.PageResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IEmployeeService {

	List<Employee> selectList(EmployeeQueryObject qo);

	PageResult<Employee> selectPage(EmployeeQueryObject qo);

	Employee selectOne(Long id);

	List<Role> seleteRolesByEmployeeId(Long id);

	void UpdateByEmployeeId(Employee employee);


	List<String> selectPermissonByEmployeeId(Long id);
	void insertRelationRoleIdAndEmployeeId(Long employeeId, Long[] ids);

	Employee selectByName(String name,String password);

	void insertEmployee(Employee employee);

	void deleteById(Long id);

}
